FROM python:3.8

RUN mkdir ~/.pip &&\
    echo "[global]" >~/.pip/pip.conf &&\
    echo "index-url = https://mirrors.aliyun.com/pypi/simple/" >>~/.pip/pip.conf &&\
    echo "[install]" >>~/.pip/pip.conf &&\
    echo "trusted-host=mirrors.aliyun.com" >>~/.pip/pip.conf &&\

    pip install django && pip install django-simpleui
ADD radius_web /opt


CMD ["python3","/opt/manage.py"]